#ifndef __GAMEOBJ_H__
#define __GAMEOBJ_H__

#include "cocos2d.h"
#include "Box2D\Box2D.h"

USING_NS_CC;

#define BLOCK_MASK 0x0F
#define UP_BLOCK 0x08
#define DOWN_BLOCK 0x04
#define LEFT_BLOCK 0x02
#define RIGHT_BLOCK 0x1

#define TER_MASK 0xF0
#define TER_AIR 0x80
#define TER_GROUND 0x40

enum GameObjType{
	HERO = 1,
	ENEMY,
};

class GameObj : public CCNode
{
public:
	GameObj(void);
	~GameObj(void);

public:
	CCSprite *sprite;
	GameObjType gameObjType;

	unsigned int moveState;
	float vertSpeed;
	float horiSpeed;
	float jumpSpeed;
	short rightMove;
	short leftMove;
	short upMove;
	short downMove;
	float jumpMove;

	bool isFlight; // TODO: Need refactor
};

#endif